package com.bwie.parkdemo.mvvm.ui.activity;

import android.content.Intent;
import android.view.View;

import com.bwie.lib_core.mvvm.base.BaseActivity;
import com.bwie.parkdemo.BR;
import com.bwie.parkdemo.R;
import com.bwie.parkdemo.databinding.ActivityVisitorBinding;
import com.bwie.parkdemo.mvvm.viewmodel.VisitorViewModel;

public class VisitorActivity extends BaseActivity<ActivityVisitorBinding, VisitorViewModel> implements View.OnClickListener{
    @Override
    public int initLayout() {
        return R.layout.activity_visitor;
    }

    @Override
    public void initView() {
        findViewById(R.id.layout_title_add).setVisibility(View.VISIBLE);
        findViewById(R.id.layout_title_add).setOnClickListener(this);
    }

    @Override
    public int initVariable() {
        return BR.vm;
    }

    @Override
    public void onClick(View v) {
        Intent intent = new Intent(this,AddVisitorActivity.class);
        startActivity(intent);
    }
}
